﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="IMPPFront._Default" %>
<%@ Register assembly="Ext.Net" namespace="Ext.Net" tagprefix="ext" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<ext:Viewport runat="server">
    <Items>
        <ext:Window
            ID="LoginWindow" 
            runat="server" 
            Closable="false"
            Resizable="false"
            Height="150" 
            Icon="Lock" 
            Title="Login"
            Draggable="false"
            Width="350"
            Modal="true"
            Padding="5"
            Layout="FormLayout"
            >
            <Items>
                <ext:TextField 
                    ID="txtUsername" 
                    runat="server" 
                    FieldLabel="Gebruikersnaam" 
                    AllowBlank="false"
                    BlankText="Gebruikersnaam is vereist."
                    AnchorHorizontal="90%"
                    ValidationGroup="loginValidation" 
                    />
                <ext:TextField 
                    ID="txtPassword" 
                    runat="server" 
                    InputType="Password" 
                    FieldLabel="Paswoord" 
                    AllowBlank="false" 
                    BlankText="Paswoord is vereist."
                    AnchorHorizontal="90%" 
                    ValidationGroup="loginValidation" 
                                   
                    />
            </Items>
            <Buttons>
                <ext:Button ID="btnLogin" runat="server" Text="Login" Icon="Accept" FormBind="true" ValidationGroup="loginValidation" CausesValidation="true">
                    <DirectEvents>
                        <Click OnEvent="Send_Login" >
                            <EventMask ShowMask="true" Msg="Aanmelden..." />
                        </Click>
                    </DirectEvents>
                </ext:Button>
            </Buttons>
        </ext:Window>
    </Items>
</ext:Viewport>
</asp:Content>
